import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {

    public static BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    public static StringTokenizer st;


    public static String next() throws IOException {
        if(st==null||!st.hasMoreTokens()){
            st=new StringTokenizer(br.readLine());
        }

        return st.nextToken();
    }

    public static String nextLine() throws IOException{
        return br.readLine();
    }

    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }



    public static void main(String[] args) throws IOException {
        int n=nextInt();
        int[] arr=new int[n];

        for (int i = 0; i < n; i++) {
            arr[i]=nextInt();
        }

        Arrays.sort(arr);
        int left=0;
        int right=n-1;
        long num=arr[n-1];
        while(left<right){
            int mid=(right-left+1)/2+left;
            if(2*arr[mid]<num){
                left=mid;
            }else {
                right=mid-1;
            }
        }


        int index=left;

        if(index<0){
            System.out.println(0);
            return;
        }

        int ret=0;
        right=n-1;

        while (index>=0){
            if(2*arr[index]<=arr[right]){
                ret++;
                right--;
            }
            index--;
        }
        System.out.println(ret);
    }
}
